package com.v5ba.sms.handler;

import org.springframework.data.redis.core.RedisTemplate;

public class RedisHandler {
    private RedisTemplate redisTemplate;
    public RedisHandler(RedisTemplate redisTemplate) {
        this.redisTemplate = redisTemplate;
    }
    public void set(String key, String value) {
        redisTemplate.opsForValue().set(key, value);
    }

    public String get(String key) {

        return (String)redisTemplate.opsForValue().get(key);
    }
}
